package cs.sasu.service.Impl;

import cs.sasu.mapper.BalanceMapper;
import cs.sasu.pojo.Balance;
import cs.sasu.service.BalanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BalanceServiceImpl implements BalanceService {
    @Autowired
    private BalanceMapper balanceMapper;

    @Override
    public int save(Balance balance) {
        return balanceMapper.insert(balance);
    }

    @Override
    public Balance getObject(String zhouxin) {
        return balanceMapper.getObject(zhouxin);
    }

    @Override
    public int update(Balance balance) {
        return balanceMapper.update(balance);
    }
}
